home *** CD-ROM | disk | FTP | other *** search
/ PC Graphics Unleashed / PC Graphics Unleashed.iso / ch17 / pi / roomfly / spotpath.inc < prev   
Encoding:
Text File  |  1994-08-02  |  1.9 KB  |  58 lines

  1. // Polyray include file: SPOTPATH.INC
  2. // by Rob McGregor
  3. //
  4. // Spline information for key frame path animation
  5.  
  6. /************************************************
  7.  Define 4 local 3-D control points as arrays for 
  8.  the path along the x and z-axes (spot1)...
  9.  
  10.   points:
  11.     x-axis: 0, 0, 3, 0, -3, -5, -8, -5, 0, 0
  12.     y-axis: 0, 0, 1, 0, -1,  3,  4,  2, 0, 0
  13.     z-axis: 0, 0, 3, 0, -5,  0,  5,  0, 0, 0
  14. *************************************************/
  15.  
  16. static define L1n1x[0, 0, 3, 0, -3, -5, -8]
  17. static define L1n1y[0, 0, 1, 0, -1,  3,  4]
  18. static define L1n1z[0, 0, 3, 0, -5,  0,  5]
  19.  
  20. static define L1n2x[0, 3, 0, -3, -5, -8, -5]
  21. static define L1n2y[0, 1, 0, -1,  3,  4,  2]
  22. static define L1n2z[0, 3, 0, -5,  0,  5,  0]
  23.  
  24. static define L1n3x[3, 0, -3, -5, -8, -5, 0]
  25. static define L1n3y[1, 0, -1,  3,  4,  2, 0]
  26. static define L1n3z[3, 0, -5,  0,  5,  0, 0]
  27.  
  28. static define L1n4x[0, -3, -5, -8, -5, 0, 0]
  29. static define L1n4y[0, -1,  3,  4,  2, 0, 0]
  30. static define L1n4z[0, -5,  0,  5,  0, 0, 0]
  31.  
  32. /************************************************
  33.  Define 4 local 3-D control points as arrays for 
  34.  the path along the x and z-axes (spot2)...
  35.  
  36.   points:
  37.     x-axis: 0, 0, -4, 0,  3, -8, -9, -5, 0, 0
  38.     y-axis: 0, 0,  2, 4,  3,  2,  0,  1, 0, 0
  39.     z-axis: 0, 0,  3, 5,  9,  9,  5,  3, 0, 0
  40. *************************************************/
  41.  
  42. static define L2n1x[0, 0, -4, 0,  3, -8, -9]
  43. static define L2n1y[0, 0,  2, 4,  3,  2,  0]
  44. static define L2n1z[0, 0,  3, 5,  9,  9,  5]
  45.  
  46. static define L2n2x[0, -4, 0,  3, -8, -9, -5]
  47. static define L2n2y[0, 2, 4,  3,  2,  0,  1]
  48. static define L2n2z[0, 3, 5,  9,  9,  5,  3]
  49.  
  50. static define L2n3x[-4, 0,  3, -8, -9, -5, 0]
  51. static define L2n3y[2, 4,  3,  2,  0,  1, 0]
  52. static define L2n3z[3, 5,  9,  9,  5,  3, 0]
  53.  
  54. static define L2n4x[0,  3, -8, -9, -5, 0, 0]
  55. static define L2n4y[4,  3,  2,  0,  1, 0, 0]
  56. static define L2n4z[5,  9,  9,  5,  3, 0, 0]
  57.  
  58.